fn main(){
    let nums = vec![1, 2, 1, 2, 3];
    println!("fuck is {}", only_one(&nums));
}

fn only_one(nums: &[isize]) -> isize{
    let mut result = 0;
    for n in nums.iter(){
        result = result ^ n;
    }
    result
}